package com.example.demo.zabbix.request.builder.template;

import com.example.demo.zabbix.request.BaseRequest;
import com.example.demo.zabbix.request.builder.request.UpdateRequestBuilder;

import java.util.Map;

public class TemplateScreenUpdateRequestBuilder extends UpdateRequestBuilder {
    private String screenId;
    public TemplateScreenUpdateRequestBuilder(String auth) {
        super("templatescreen.update", auth);
    }

    public TemplateScreenUpdateRequestBuilder(Long id, String auth) {
        super("templatescreen.update", id, auth);
    }

    public String getScreenId() {
        return screenId;
    }

    public TemplateScreenUpdateRequestBuilder setScreenId(String screenId) {
        this.screenId = screenId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("screenid",screenId);
        return baseRequest;
    }
}
